﻿namespace Agile.Service.Admin.Model.ViewModel.Sys;

public class InsertSysDictionaryTypeRequest
{
    ///<summary>字典编码</summary>
    [Required]
    [JsonConverter(typeof(StringTrimConverter))]
    public string DicCode { get; set; }

    ///<summary>字典值</summary>
    [Required]
    [JsonConverter(typeof(StringTrimConverter))]
    public string DicValue { get; set; }

    ///<summary>是否启用</summary>
    public bool Enabled { get; set; }

    ///<summary>备注</summary>
    public string Remark { get; set; }
}

public class UpdateSysDictionaryTypeRequest : InsertSysDictionaryTypeRequest
{

}

public class InsertSysDictionaryDataRequest : InsertSysDictionaryTypeRequest
{
    ///<summary>父级编码</summary>
    [Required]
    [JsonConverter(typeof(StringTrimConverter))]
    public string ParentDicCode { get; set; }
}
public class UpdateSysDictionaryDataRequest : InsertSysDictionaryDataRequest
{

}
public class QuerySysDictionaryTypeRequest
{
    ///<summary>字典编码/字典值</summary> 
    public string KeyWords { get; set; }

    ///<summary>是否启用</summary>
    public bool? Enabled { get; set; }
}
public class QuerySysDictionaryDataRequest : QuerySysDictionaryTypeRequest
{
    ///<summary>父级编码</summary>
    [Required]
    public string ParentDicCode { get; set; }
}